<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<LINK href="../styles/stylewang.css"  type=text/css rel=stylesheet>
		<LINK href="styles/stylewang.css"  type=text/css rel=stylesheet>
		<LINK href="xtree.css"  type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<title>CGProject</title>
		<html:base/>
</head>
<script language="javaScript" src="../../js/calendar.js"></script>
<%String id = (String)request.getAttribute("ID");%>
<%String chi_id = (String)request.getAttribute("ChildID");%>
<body>
<table border="0" width="100%" cellspacing="0" id="table6">
	<tr>
		<td colspan="6" width="85%" id="onlybt">&nbsp;
		<b><bean:message key="shotgroup"/>&nbsp;<font color="#990000"><bean:write name="sgp" property="shotGroupName"/></font>&nbsp;<bean:message key="shotgroup.information"/></b>

		</td>
	</tr>
	<logic:equal name="sgps_empty" value="false"><tr>
		<td width="15%" id="btleftbian">
		<b>&nbsp; <bean:message key="shotgroup"/></b></td>		
		<td width="53%" colspan="5" id="btrightbian">
		<b><font face="Verdana">&nbsp; </font></b></td>		
	</tr></logic:equal>
	<logic:equal name="sgps_empty" value="true"><tr>
		<td width="15%" colspan="6" id="leftcenter">
		&nbsp;<font color="#990000"><bean:message key="shotgroup.nosubgroup"/></font></td>		
		<td width="53%" id="rightcenter">
		　</td>		
	</tr></logic:equal>
	<logic:iterate id="element" name="sgps">
	<logic:equal name="element" property="shotGroupId" value="<%=chi_id%>">
	
	<html:form action="/modSGroup">
	<html:hidden property="id"/>
	<tr>
		<td width="15%" id="leftcenter">
		<html:text property="name" size="15"/></td>		
		<td width="53%" colspan="5" id="rightcenter">
		<html:submit><bean:message key="submit"/></html:submit></td>		
	</tr>
	</html:form>
	</logic:equal>
	<logic:notEqual name="element" property="shotGroupId" value="<%=chi_id%>">
	<tr>
		<td  width="15%" id="leftcenter">
		&nbsp;&nbsp;<bean:write name="element" property="shotGroupName"/></td>		
		<td width="53%" colspan="5" id="rightcenter">
		&nbsp;<html:link page="/intoModSGroup.do" paramId="SGroupID" paramName="element" paramProperty="shotGroupId">[<bean:message key="basicmodify"/>]</html:link>&nbsp;&nbsp;
		<a href="../del.do?FatherType=Shotgroup&FatherId=<%=id%> &Type=Shotgroup&Id=<bean:write name="element" property="shotGroupId"/>" onclick="return   confirm('<bean:message key="confirmdel"/>?')">[<bean:message key="delete"/>]</a></td>		
	</tr>
	</logic:notEqual>
	</logic:iterate>
	<logic:equal name="shots_empty" value="false"><tr>
		<td width="12%" id="leftcenter">
		<b>&nbsp; <bean:message key="shot.name"/></b></td>
		<td width="20%" id="leftcenter">
		<b>&nbsp; <bean:message key="shot.planstart"/>(<bean:message key="hour"/>)</b></td>
		<td width="20%" id="leftcenter">
		<b>&nbsp; <bean:message key="shot.planend"/>(<bean:message key="hour"/>)</b></td>
		<td width="23%" id="leftcenter">
		<b>&nbsp; <bean:message key="shot.description"/></b></td>
		<td  width="5%" id="leftcenter">
		<b><bean:message key="shot.totalframe"/></b></td>		
		<td width="53%" id="rightcenter">
		<b><font face="Verdana">&nbsp; </font></b></td>		
	</tr></logic:equal>
	<logic:equal name="shots_empty" value="true"><tr>
		<td width="15%" id="leftcenter">
		&nbsp;<font color="#990000"><bean:message key="shot.noshot"/></font></td>		
		<td width="53%" colspan="5" id="rightcenter">
		　</td>		
	</tr></logic:equal>
	<logic:iterate id="element" name="shots">
	<tr>
		<td width="15%" id="leftcenter">
		&nbsp;&nbsp;<bean:write name="element" property="shotName"/></td>
		<td width="20%" id="leftcenter">
		&nbsp;&nbsp;<bean:write name="element" property="planStartTime"/>(<bean:message key="hour"/>)</td>
		<td width="20%" id="leftcenter">
		&nbsp;&nbsp;<bean:write name="element" property="planEndTime"/>(<bean:message key="hour"/>)</td>
		<td width="23%" id="leftcenter">
		&nbsp;&nbsp;<bean:write name="element" property="shotDescription"/></td>
		<td width="5%" id="leftcenter">
		&nbsp;<bean:write name="element" property="shotTotalFrameNum"/></td>		
		<td width="53%" id="rightcenter">
		&nbsp;<html:link page="/intoModShot.do" paramId="shotId" paramName="element" paramProperty="shotId">[<bean:message key="basicmodify"/>]</html:link>&nbsp;&nbsp;
		<a href="../del.do?FatherType=Shotgroup&FatherId=<%=id%> &Type=Shot&Id=<bean:write name="element" property="shotId"/>" onclick="return   confirm('<bean:message key="confirmdel"/>?')">[<bean:message key="delete"/>]</a></td>		
	</tr>
	</logic:iterate>
	<tr><td id="tdtop" colspan="6">&nbsp;</td></tr>
</table>

</body>
</html:html>
